{% extends "layout.html" %}

{% block title %}Add Accessory{% endblock %}


{% block content %}
<ul class="nav nav-tabs custom-tab">
    <li><a href="{{ base_url }}admin/accessory.php" data-toggle="tab"><i class="icon-list"></i><span>Accessory</span></a></li>
    <li class="active"><a href="" data-toggle="tab"><i class="icon-user"></i><span>Add Accessory</span></a></li>
</ul>
<div class="user-form">
    <h2>New Accessory</h2>
    <form class="form-horizontal custom-form" method="post" action="accessory.php" enctype="multipart/form-data">
        <input type="hidden" name="action" value="add"/>
        <input type="hidden" name="save" value="1"/>
        <fieldset>
            <div>
                <label for="brand">Accessory Name</label>
                <input type="text" name="name" id="brand" class="input-xlarge" placeholder="Accessory Name"/>
            </div>
            <div>
                <label for="brandid">Brand</label>
                <select name="brandid">
                    {% for brand in brands %}
                    <option value="{{brand.id}}" >{{brand.name}}</option>
                    {% endfor %}
                </select>
            </div>
            <div>
                <label for="remark">Remark</label>
                <input type="text" name="remark" id="remark" class="input-xlarge" placeholder="Remark"/>
            </div>
            <div>
                <label for="photo">Photo</label>
                <input type="file" name="photo" class="input-file" id="photo"/>
            </div>
            <button type="submit" class="btn btn-primary">Save</button>
        </fieldset>
    </form>
</div>

{% endblock %}